package com.suneee.base.sendmsg.wsclient;

import java.net.MalformedURLException;
import java.net.URL;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;

@WebServiceClient(name = "SmsSenderV2Service", targetNamespace = "http://operation.service.sms_frontend.skylink.com/", wsdlLocation="http://172.16.1.9:8280/sms_frontend/services/smsSenderV2WebService?wsdl")
public class SmsSenderV2Service  extends Service{

	private final static URL SMSSENDERV2SERVICE_WSDL_LOCATION;
    private final static WebServiceException SMSSENDERV2SERVICE_EXCEPTION;
    private final static QName SMSSENDERV2SERVICE_QNAME = new QName("http://operation.service.sms_frontend.skylink.com/", "SmsSenderV2Service");

    static {
        URL url = null;
        WebServiceException e = null;
        try {
        	 url = new URL("http://172.16.1.9:8280/sms_frontend/services/smsSenderV2WebService?wsdl");
           // url = new URL("http://221.7.131.242:8280/sms_frontend/services/smsSenderV2WebService?wsdl");
        } catch (MalformedURLException ex) {
            e = new WebServiceException(ex);
        }
        SMSSENDERV2SERVICE_WSDL_LOCATION = url;
        SMSSENDERV2SERVICE_EXCEPTION = e;
    }

    public SmsSenderV2Service() {
        super(__getWsdlLocation(), SMSSENDERV2SERVICE_QNAME);
    }

    public SmsSenderV2Service(WebServiceFeature... features) {
        super(__getWsdlLocation(), SMSSENDERV2SERVICE_QNAME, features);
    }

    public SmsSenderV2Service(URL wsdlLocation) {
        super(wsdlLocation, SMSSENDERV2SERVICE_QNAME);
    }

    public SmsSenderV2Service(URL wsdlLocation, WebServiceFeature... features) {
        super(wsdlLocation, SMSSENDERV2SERVICE_QNAME, features);
    }

    public SmsSenderV2Service(URL wsdlLocation, QName serviceName) {
        super(wsdlLocation, serviceName);
    }

    public SmsSenderV2Service(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
        super(wsdlLocation, serviceName, features);
    }

    /**
     * 
     * @return
     *     returns SmsSenderIV2
     */
    @WebEndpoint(name = "SmsSenderV2Port")
    public SmsSenderIV2 getSmsSenderV2Port() {
        return super.getPort(new QName("http://operation.service.sms_frontend.skylink.com/", "SmsSenderV2Port"), SmsSenderIV2.class);
    }

    /**
     * 
     * @param features
     *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
     * @return
     *     returns SmsSenderIV2
     */
    @WebEndpoint(name = "SmsSenderV2Port")
    public SmsSenderIV2 getSmsSenderV2Port(WebServiceFeature... features) {
        return super.getPort(new QName("http://operation.service.sms_frontend.skylink.com/", "SmsSenderV2Port"), SmsSenderIV2.class, features);
    }

    private static URL __getWsdlLocation() {
        if (SMSSENDERV2SERVICE_EXCEPTION!= null) {
            throw SMSSENDERV2SERVICE_EXCEPTION;
        }
        return SMSSENDERV2SERVICE_WSDL_LOCATION;
    }
}
